package com.hospital.insurancedip.module.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hospital.insurancedip.module.entity.*;
import com.hospital.insurancedip.module.mapper.Minsur2301ResultMapper;
import com.hospital.insurancedip.module.service.Minsur2301ResultService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lvyao
 * @since 2021-06-19
 */
@Service
public class Minsur2301ResultServiceImpl extends ServiceImpl<Minsur2301ResultMapper, Minsur2301Result> implements Minsur2301ResultService {

    @Resource
    private Minsur2301ResultMapper minsur2301ResultMapper;

    @Override
    public PatientInfo getInpNoByPid(String patId) {
        return minsur2301ResultMapper.getInpNoByPid(patId);
    }

    @Override
    public String getRcptNo(String patId, String visitId) {
        return minsur2301ResultMapper.getRcptNo(patId,visitId);
    }

    @Override
    public String getMaterialNo(String patId, String visitId) {
        return minsur2301ResultMapper.getMaterialNo(patId,visitId);
    }

    @Override
    public List<IteminfoBeanHIs> getBysql(String mdtrtId, String tableName) {
        return minsur2301ResultMapper.getBysql(mdtrtId,tableName);
    }

    @Override
    public String getApiDept(String deptCode) {
        return minsur2301ResultMapper.getApiDept(deptCode);
    }

    @Override
    public String getMaterialBathno(String materialNo) {
        return minsur2301ResultMapper.getMaterialBathno(materialNo);
    }

    @Override
    public List<TreatDays> getTeatAllDays(String patId, String visitId) {
        return minsur2301ResultMapper.getTeatAllDays(patId,visitId);
    }

    @Override
    public Map<String, String> getAdmTimeAndDscgTime(String patId, String visitId) {
        return minsur2301ResultMapper.getAdmTimeAndDscgTime(patId,visitId);
    }

    @Override
    public String getNationCode(String pid) {
        return minsur2301ResultMapper.getNationCode(pid);
    }

    @Override
    public List<IcuInfo> getByorder(String pid, String vid, String likeStr) {
        return minsur2301ResultMapper.getByorder(pid,vid,likeStr);
    }

    @Override
    public String  getVentUsedDura(String patId,String visitId){
        return minsur2301ResultMapper.getVentUsedDura(patId,visitId);
    }

    @Override
    public String getDoctor() {
        return minsur2301ResultMapper.getDoctor();
    }
}
